The ex command g is very useful for acting on lines that match a pattern. You can use it with the d command, to delete all lines that contain a particular ...
The command to delete a line in Vim is dd. Below are step-by-step instructions to delete a line: Pressing dd multiple times will delete multiple lines.